#import "PirateOpusController.h"
        
#import "PirateOpusModel.h"
#import "PirateOpusCell.h"
#import "Masonry.h"

@interface PirateOpusController () <UICollectionViewDataSource, UICollectionViewDelegate>

@property (nonatomic, strong) UICollectionView *leapfrogXenophobeUnfoldCollectionView;
@property (nonatomic, strong) NSMutableArray *silhouetteStillnessArray;

@end

@implementation PirateOpusController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self kiteEchoesConfigsview];
	[self journeyAmazingloadData];
}


//: 获取数据模型
- (void)journeyAmazingloadData {
	
}

- (void)kiteEchoesConfigsview {
    UICollectionViewFlowLayout *yarn = [[UICollectionViewFlowLayout alloc] init];
    yarn.minimumLineSpacing = 10;
    yarn.minimumInteritemSpacing = 10;
    yarn.itemSize = CGSizeMake(100, 100);
    yarn.scrollDirection = UICollectionViewScrollDirectionVertical;
    
    self.leapfrogXenophobeUnfoldCollectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:yarn];
    self.leapfrogXenophobeUnfoldCollectionView.backgroundColor = UIColor.clearColor;
    self.leapfrogXenophobeUnfoldCollectionView.delegate = self;
    self.leapfrogXenophobeUnfoldCollectionView.dataSource = self;
    self.leapfrogXenophobeUnfoldCollectionView.showsHorizontalScrollIndicator = NO;
    self.leapfrogXenophobeUnfoldCollectionView.showsVerticalScrollIndicator = NO;
    [self.leapfrogXenophobeUnfoldCollectionView registerClass:[PirateOpusCell class] forCellWithReuseIdentifier:NSStringFromClass([PirateOpusCell class])];
    
    [self.view addSubview:self.leapfrogXenophobeUnfoldCollectionView];
    [self.leapfrogXenophobeUnfoldCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];
}

//: 懒加载数据模型数组
- (NSMutableArray *)silhouetteStillnessArray {
	if (!_silhouetteStillnessArray) {
		_silhouetteStillnessArray = [NSMutableArray array];
	}
	return _silhouetteStillnessArray;
}

#pragma mark - UICollectionView DataSource
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return self.silhouetteStillnessArray.count;
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    PirateOpusCell *prismFlexibility = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([PirateOpusCell class]) forIndexPath:indexPath];
    return prismFlexibility;
}

#pragma mark - UICollectionView Delegate
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
    //: collectioncell 点击
}


@end
